package dk.pekilidi.dod;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

/**
 * User: mpeki
 * Date: 12-12-2007
 * Time: 21:58:09
 */
public class Skill extends BaseObject {

    private Attribute.AttributeType baseAttribute;
    private boolean baseChancePossible;
    private int value;

    public Skill(){super();}

    public Skill(Attribute.AttributeType baseAttribute, boolean baseChancePoss, String description){
        super();
        this.setBaseAttribute(baseAttribute);
        this.setBaseChancePossible(baseChancePoss);
        this.setDescription(description);
    }

    public Attribute.AttributeType getBaseAttribute() {
        return baseAttribute;
    }

    public void setBaseAttribute(Attribute.AttributeType baseAttribute) {
        this.baseAttribute = baseAttribute;
    }

    public boolean isBaseChancePossible() {
        return baseChancePossible;
    }

    public void setBaseChancePossible(boolean baseChancePossible) {
        this.baseChancePossible = baseChancePossible;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).
                append("baseAttribute", baseAttribute).
                append("baseChancePossible", baseChancePossible).
                append("value", value).
                toString();
    }
}
